package com.qf.hotel.service;

import com.qf.hotel.pojo.Food;

import java.sql.SQLException;
import java.util.List;

/**
 * 菜品的业务层
 */
public interface FoodService {
    /**
     * 菜品查询
     * @param food
     * @return
     * @throws SQLException
     */
    List<Food> findByCondition(Food food) throws SQLException, Exception;

    /**
     * 添加food
     * @param food
     * @return
     */
    int save(Food food);
}
